home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _B927AE4C63A94958B114ACD0BF28BAD3 < prev    next >
Encoding:
Text File  |  2004-01-06  |  2.1 KB  |  77 lines

  1. ; Shaders Script file
  2. ; Copyright (c) 2001-2003 Crytek Studios. All Rights Reserved.
  3. ; Author: Honich Andrey
  4.  
  5. Version (1.00)
  6.  
  7. //========================================================================
  8. // ATI R3xx / NVidia NV3X (PS.2.0 / PS.2.X only)
  9.  
  10. // Specular & Diffuse bump-mapping with fresnel env. CM reflections masked by gloss-map (alpha channel of diffuse texture)
  11. // and with specular exp. in alpha channel of gloss texture
  12. // At least two passes for multiple light sources
  13. // One pass for single light source
  14.  
  15. // Supports:
  16. // 1. Dot3 light maps
  17. // 2. Simple light maps
  18. // 3. Three types of shadow maps (2D, Depth-maps and mixed Depth/2D)
  19. // 4. Stencil shadows
  20. // 5. Three types of light sources (Directional, Point/Omni, Projected)
  21. // 6. Optimised separate techniques for Single/Multiple light sources
  22.  
  23. /*Shader 'TemplBumpSpec_GlossAlpha_EnvCMSpec_PowerGlossAlpha_PS20'
  24. (
  25.   Params
  26.   (
  27.     Sort = Opaque
  28.   )
  29.   Public
  30.   (
  31.     float 'EnvMapContrast' (0)
  32.     float 'EnvMapSaturation' (1)
  33.     float 'EnvMapAmount' (1)
  34.     float 'FresnelScale' (1)
  35.     float 'FresnelBias' (0)
  36.     float 'FresnelPow' (5)
  37.     float 'SpecularExpMultiplier' (255)
  38.   )
  39.  
  40.   #define $ENVCMAP $CubeMap
  41.   #include "BumpSpecular_GlossAlpha_EnvCMSpec_PowerGlossAlpha_PS20.csi"  
  42.   #undefine $ENVCMAP
  43. )*/
  44.  
  45. Shader 'TemplBumpSpec_GlossAlpha_EnvCMSpec_PowerGlossAlpha_PS20'
  46. (
  47.   Params
  48.   (
  49.     Sort = Opaque
  50.   )
  51.  
  52.   #define %DIFFUSE 0x1
  53.   #define %DIFFUSE_PERPIXEL 0x8000
  54.   #define %SPECULAR 0x2
  55.   #define %SPECULAR_PERPIXEL 0x400
  56.   #define %BUMP_NORMALIZE 0x200
  57.   #define %ENVCMSPEC 0x80
  58.   #define %GLOSS_DIFFUSEALPHA 0x20
  59.   #define %SPECULARPOW_GLOSSALPHA 0x800
  60.   #define %PROJLIGHT_PERPIXELATTEN 0x100
  61.   #define %BUMP_MAP 0x1000
  62.   
  63.   #include "IllumTemplate.csi"
  64.   
  65.   #undefine %BUMP_MAP
  66.   #undefine %PROJLIGHT_PERPIXELATTEN
  67.   #undefine %SPECULARPOW_GLOSSALPHA
  68.   #undefine %GLOSS_DIFFUSEALPHA
  69.   #undefine %ENVCMSPEC
  70.   #undefine %BUMP_NORMALIZE
  71.   #undefine %SPECULAR_PERPIXEL
  72.   #undefine %SPECULAR
  73.   #undefine %DIFFUSE_PERPIXEL
  74.   #undefine %DIFFUSE
  75. )
  76.  
  77.